import request from "./request";

// 查询分类
export function getCateByPage(obj){
    return request.post('/admin/category/page',obj)
}
// 查询商品
export function getGoodsByPage(data){
    return request.post('/admin/goods/list',data)
}
//获取商品详情
export function getGoodsDetailById(id){
    return request.get(`/admin/goods/${id}`)
}
// 根据分类获取商品
export function getGoodsByCate(id){
    return request.get(`/admin/goods/list/${id}`)
}
// 根据名称获取商品
export function getGoodsByName(name){
    return request.get(`/admin/goods/name?name=${name}`)
}